import {
  Body,
  Controller,
  Post,
} from '@nestjs/common';
import { ApiOperation, ApiTags } from '@nestjs/swagger';
import { TrackService } from './track.service';
import { TrackCreateDto } from "@/module/track/track.dto";

@Controller('/v1/tracks')
@ApiTags('Track')
export class TrackV1Controller {
  constructor(private readonly trackService: TrackService) {
  }

  @Post('/')
  @ApiOperation({ summary: '埋点' })
  async create(@Body() body: TrackCreateDto): Promise<void> {
    this.trackService.create(body);
    return;
  }
}
